﻿@model Gfw.Web.Models.User.UserBindingInfoModel

@{
    ViewBag.Title = "编辑会员资料";
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>编辑会员资料</legend>

        @Html.HiddenFor(model => model.LoginName)
        @Html.HiddenFor(model => model.IsLock)
        @Html.HiddenFor(model => model.LockDate)
        @Html.HiddenFor(model => model.LockReason)

        <div class="editor-label">
            @Html.LabelFor(model => model.IDCard)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDCard)
            @Html.ValidationMessageFor(model => model.IDCard)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BankName)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.BankName, ViewBag.BankList as IEnumerable<SelectListItem>,"")
            @Html.ValidationMessageFor(model => model.BankName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BankCardNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BankCardNo)
            @Html.ValidationMessageFor(model => model.BankCardNo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BankUserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BankUserName)
            @Html.ValidationMessageFor(model => model.BankUserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BankAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BankAddress)
            @Html.ValidationMessageFor(model => model.BankAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tenpay)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tenpay)
            @Html.ValidationMessageFor(model => model.Tenpay)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Alipay)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Alipay)
            @Html.ValidationMessageFor(model => model.Alipay)
        </div>

        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("返回", "Index", new { loginName = Model.LoginName })
</div>

@section Scripts {
    @System.Web.Optimization.Scripts.Render("~/bundles/jqueryval")
}
